package com.ruoyi.pssd.service.impl;



import com.ruoyi.pssd.domain.PsdPurchase;
import com.ruoyi.pssd.mapper.PsdExamineMapper;
import com.ruoyi.pssd.service.PsdExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsdExamineServiceImpl implements PsdExamineService {
    @Autowired
    private PsdExamineMapper psdExamineMapper;
    /*@Autowired
    private PsdDrugMapper psdDrugMapper;*/


    @Override
    public List<PsdPurchase> selectPurchaseDocuments() {

        List<PsdPurchase> psdPurchases = psdExamineMapper.selectPurchaseDocuments();
        return psdPurchases;
    }

    @Override
    public List<PsdPurchase> selectPurchase(PsdPurchase psdPurchase) {
        return psdExamineMapper.selectPurchase(psdPurchase);
    }




    @Override
    public int updatePurchaseById(Long[] ids) {
        return psdExamineMapper.updatePurchaseById(ids);
    }

    @Override
    public int deletePurchaseById(Long[] purchaseIds) {
        return psdExamineMapper.deletePurchaseById(purchaseIds);
    }


}
